<?php
include($_SERVER['DOCUMENT_ROOT']."/inc/Function_user.php");
upower();
$uid = isset($_GET['uid'])?intval($_GET['uid']):0;
$info = getuserinfo($uid,$_SESSION['userid']);
if($info['pwdshow']){
    updateuser($info['Id'],'pwdshow');
    $tpl->assign("info",$info);
    $tpl->show("success");
}else{
    echo "<script>window.location.href='/user/';</script>";
}

?>